;;; dotemacs.el --- 
;; 
;; Author: Corey Oliver
;; Last-Updated: Tue Aug 30 17:37:52 2011 (UTC)
;; 
;; Description: Corey Oliver's Emacs startup, run from .emacs or
;; _emacs

;; A sample .emacs:
;; (setq load-path (cons "~/.emacs.d" load-path))

;; ;; The facility where this .emacs file recides. Such as "work",
;; ;; "home", "school", etc.
;; (defvar emacs-src "home")

;; (load "dotemacs")

;;; A .emacs file modeled after Steve Yegge's (see
;;; http://sites.google.com/site/steveyegge2/my-dot-emacs-file)

(require 'cl)

(defvar emacs-root (cond
	((equal emacs-src "school")
		"/mnt/nfs/netapp2/grad/cjoliver/")
	((equal emacs-src "work")
		"/cygdrive/c/cygwin/home/oliverc/")
	((equal emacs-src "home")
		"/home/coreyoliver/"))
 "My home directory -- the root of my personal emacs load-path.")

(defvar plugins-dir (concat emacs-root ".emacs.d/plugins/")
  "My plugins directory -- the root of all my emacs plugins.")

;; add plugins I found on the web to my load path
(add-to-list 'load-path  plugins-dir)

(load-library "screen-config") ;; window and color-theme settings
(load-library "font-config") ;; font configurations
(load-library "key-bindings") ;; my key bindings and some aliases
(load-library "my-funcs") ;; a bunch of my own misc. functions
(load-library "my-config") ;; one-off variable settings
(load-library "modes-config") ;; configuration for emacs modes
(load-library "my-plugins") ;; all the other emacs extensions i need
(load-library "my-projects") ;; my current projects

;; a file to disable/enable third-party plugins found in site-list
;; (useful when experimenting with new plugins)
(load-library "plugin-testbed")

;; start emacs with a shell
(eshell)
